﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ExplorerPlus.Plugins.Music
{
    public partial class AlbumTracks : Form
    {
        public AlbumTracks()
        {
            InitializeComponent();
        }

        private void AlbumTracks_Load(object sender, EventArgs e)
        {

        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            const int WM_KEYDOWN = 0x100;
            const int WM_SYSKEYDOWN = 0x104;

            if ((msg.Msg == WM_KEYDOWN) || (msg.Msg == WM_SYSKEYDOWN))
            {
                switch (keyData)
                {
                    case Keys.Escape:
                        this.Close();
                        return true;
                }
            }

            return base.ProcessCmdKey(ref msg, keyData);
        }

    }
}
